concommand.Add("ChatBot_Save", function()
	ChatBot.SaveTable()
end)

concommand.Add("ChatBot_Save_AdminGreetings", function()
	ChatBot.SaveAdminGreetingsTable()
end)
	
concommand.Add("ChatBot_Save_Greetings", function()
	ChatBot.SaveGreetingsTable()
end)
	
concommand.Add("ChatBot_Save_ALL", function()
	ChatBot.SaveGreetingsTable()
	ChatBot.SaveAdminGreetingsTable()
	ChatBot.SaveTable()
end)
	
concommand.Add("ChatBot_Add", function( ply, cmd , args)
	local trig = table.remove(args, 1)
	ChatBot.Add( trig, args )
end)
	
concommand.Add("ChatBot_FlushCache", function( ply )
	if ply:IsAdmin() then
		file.Delete(ChatBotSettings.File)
		file.Delete(ChatBotSettings.FileG)
		file.Delete(ChatBotSettings.FileAG)
		print("ChatBot : Flushed cache files! Please use the command ChatBot_Save_all to restore the files")
	end
end)
	
concommand.Add("ChatBot_OVERIDE", function( ply , cmd, args)
	if ply:IsSuperAdmin() then
		local text = string.Implode(" ", args)
		umsg.Start("ChatBot.Call")
			umsg.String( text )
		umsg.End()
	end
end)